package com.ly.cloud.remote.feign.fallback;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.google.common.collect.Maps;
import com.ly.cloud.remote.feign.CodeRuleServiceFeign;
import com.ly.cloud.web.utils.WebResponse;
import com.ly.cloud.web.utils.WebResponse.Meta;

@Component
public class CodeRuleServiceFeignFallback implements CodeRuleServiceFeign {

	private Map<String, Object> getResult(){
		Map<String, Object> map = Maps.newHashMap();
		map.put("code", 500);
		map.put("message", "LY-GZJW-XTSZ-SVC 远程调用失败");
		return map;
	}
	
	private String getStrResult() {
		return "LY-GZJW-XTSZ-SVC 远程调用失败";
	}
	

	@Override
	public WebResponse<String> genRuleCode(String bbh) {
		WebResponse response = new WebResponse();
		response.setData(getStrResult());
		return response;
	}
	

}
